package com.hjq.demo.ui.activity

import android.view.View
import cn.cucsi.myframe.R
import com.flyjingfish.android_aop_core.annotations.SingleClick
import com.hjq.demo.app.AppActivity

/**
 *    author : Yang
 *    time   : 2024/05/24
 *    desc   : 设置页面相关案例
 */
class SetPageRelatedActivity : AppActivity() {

    override fun getLayoutId(): Int {
        return R.layout.set_page_related_activity
    }

    override fun initView() {
        setOnClickListener(
            R.id.btn_mine_setting,
            R.id.btn_mine_about,
        )
    }

    override fun initData() {}

    @SingleClick
    override fun onClick(view: View) {
        when (view.id) {
            R.id.btn_mine_setting -> {
                startActivity(SettingActivity::class.java)
            }

            R.id.btn_mine_about -> {
                startActivity(AboutActivity::class.java)
            }
        }
    }
}